﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F59 RID: 3929
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicRoomInfo : IMessage<RogueMagicRoomInfo>, IMessage, IEquatable<RogueMagicRoomInfo>, IDeepCloneable<RogueMagicRoomInfo>, IBufferMessage
	{
		// Token: 0x170031E2 RID: 12770
		// (get) Token: 0x0600B030 RID: 45104 RVA: 0x001DCAC7 File Offset: 0x001DACC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicRoomInfo> Parser
		{
			get
			{
				return RogueMagicRoomInfo._parser;
			}
		}

		// Token: 0x170031E3 RID: 12771
		// (get) Token: 0x0600B031 RID: 45105 RVA: 0x001DCACE File Offset: 0x001DACCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicRoomInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170031E4 RID: 12772
		// (get) Token: 0x0600B032 RID: 45106 RVA: 0x001DCAE0 File Offset: 0x001DACE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicRoomInfo.Descriptor;
			}
		}

		// Token: 0x0600B033 RID: 45107 RVA: 0x001DCAE7 File Offset: 0x001DACE7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicRoomInfo()
		{
		}

		// Token: 0x0600B034 RID: 45108 RVA: 0x001DCAF0 File Offset: 0x001DACF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicRoomInfo(RogueMagicRoomInfo other) : this()
		{
			this.bPFBJKCFLKH_ = other.bPFBJKCFLKH_;
			this.status_ = other.status_;
			this.roomIndex_ = other.roomIndex_;
			this.roomId_ = other.roomId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B035 RID: 45109 RVA: 0x001DCB44 File Offset: 0x001DAD44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicRoomInfo Clone()
		{
			return new RogueMagicRoomInfo(this);
		}

		// Token: 0x170031E5 RID: 12773
		// (get) Token: 0x0600B036 RID: 45110 RVA: 0x001DCB4C File Offset: 0x001DAD4C
		// (set) Token: 0x0600B037 RID: 45111 RVA: 0x001DCB54 File Offset: 0x001DAD54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BPFBJKCFLKH
		{
			get
			{
				return this.bPFBJKCFLKH_;
			}
			set
			{
				this.bPFBJKCFLKH_ = value;
			}
		}

		// Token: 0x170031E6 RID: 12774
		// (get) Token: 0x0600B038 RID: 45112 RVA: 0x001DCB5D File Offset: 0x001DAD5D
		// (set) Token: 0x0600B039 RID: 45113 RVA: 0x001DCB65 File Offset: 0x001DAD65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicRoomStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x170031E7 RID: 12775
		// (get) Token: 0x0600B03A RID: 45114 RVA: 0x001DCB6E File Offset: 0x001DAD6E
		// (set) Token: 0x0600B03B RID: 45115 RVA: 0x001DCB76 File Offset: 0x001DAD76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomIndex
		{
			get
			{
				return this.roomIndex_;
			}
			set
			{
				this.roomIndex_ = value;
			}
		}

		// Token: 0x170031E8 RID: 12776
		// (get) Token: 0x0600B03C RID: 45116 RVA: 0x001DCB7F File Offset: 0x001DAD7F
		// (set) Token: 0x0600B03D RID: 45117 RVA: 0x001DCB87 File Offset: 0x001DAD87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RoomId
		{
			get
			{
				return this.roomId_;
			}
			set
			{
				this.roomId_ = value;
			}
		}

		// Token: 0x0600B03E RID: 45118 RVA: 0x001DCB90 File Offset: 0x001DAD90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicRoomInfo);
		}

		// Token: 0x0600B03F RID: 45119 RVA: 0x001DCBA0 File Offset: 0x001DADA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicRoomInfo other)
		{
			return other != null && (other == this || (this.BPFBJKCFLKH == other.BPFBJKCFLKH && this.Status == other.Status && this.RoomIndex == other.RoomIndex && this.RoomId == other.RoomId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B040 RID: 45120 RVA: 0x001DCC0C File Offset: 0x001DAE0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BPFBJKCFLKH != 0U)
			{
				num ^= this.BPFBJKCFLKH.GetHashCode();
			}
			if (this.Status != RogueMagicRoomStatus.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this.RoomIndex != 0U)
			{
				num ^= this.RoomIndex.GetHashCode();
			}
			if (this.RoomId != 0U)
			{
				num ^= this.RoomId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B041 RID: 45121 RVA: 0x001DCC9C File Offset: 0x001DAE9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B042 RID: 45122 RVA: 0x001DCCA4 File Offset: 0x001DAEA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B043 RID: 45123 RVA: 0x001DCCB0 File Offset: 0x001DAEB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RoomId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.RoomId);
			}
			if (this.BPFBJKCFLKH != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BPFBJKCFLKH);
			}
			if (this.Status != RogueMagicRoomStatus.None)
			{
				output.WriteRawTag(96);
				output.WriteEnum((int)this.Status);
			}
			if (this.RoomIndex != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.RoomIndex);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B044 RID: 45124 RVA: 0x001DCD44 File Offset: 0x001DAF44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BPFBJKCFLKH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BPFBJKCFLKH);
			}
			if (this.Status != RogueMagicRoomStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this.RoomIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomIndex);
			}
			if (this.RoomId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RoomId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B045 RID: 45125 RVA: 0x001DCDCC File Offset: 0x001DAFCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicRoomInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BPFBJKCFLKH != 0U)
			{
				this.BPFBJKCFLKH = other.BPFBJKCFLKH;
			}
			if (other.Status != RogueMagicRoomStatus.None)
			{
				this.Status = other.Status;
			}
			if (other.RoomIndex != 0U)
			{
				this.RoomIndex = other.RoomIndex;
			}
			if (other.RoomId != 0U)
			{
				this.RoomId = other.RoomId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B046 RID: 45126 RVA: 0x001DCE44 File Offset: 0x001DB044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B047 RID: 45127 RVA: 0x001DCE50 File Offset: 0x001DB050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 24U)
					{
						this.RoomId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.BPFBJKCFLKH = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 96U)
					{
						this.Status = (RogueMagicRoomStatus)input.ReadEnum();
						continue;
					}
					if (num == 104U)
					{
						this.RoomIndex = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004767 RID: 18279
		private static readonly MessageParser<RogueMagicRoomInfo> _parser = new MessageParser<RogueMagicRoomInfo>(() => new RogueMagicRoomInfo());

		// Token: 0x04004768 RID: 18280
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004769 RID: 18281
		public const int BPFBJKCFLKHFieldNumber = 6;

		// Token: 0x0400476A RID: 18282
		private uint bPFBJKCFLKH_;

		// Token: 0x0400476B RID: 18283
		public const int StatusFieldNumber = 12;

		// Token: 0x0400476C RID: 18284
		private RogueMagicRoomStatus status_;

		// Token: 0x0400476D RID: 18285
		public const int RoomIndexFieldNumber = 13;

		// Token: 0x0400476E RID: 18286
		private uint roomIndex_;

		// Token: 0x0400476F RID: 18287
		public const int RoomIdFieldNumber = 3;

		// Token: 0x04004770 RID: 18288
		private uint roomId_;
	}
}
